use axum::{
    routing::{get, post},
    Router,
};

use crate::handlers::{create_user_handler, get_all_users_handler, login_handler,get_current_user,get_user_by_id_handler};

pub fn user_routes() -> Router {
    Router::new()
        .route("/users", post(create_user_handler))
        .route("/users", get(get_all_users_handler))
        .route("/user", get(get_user_by_id_handler))
}

pub fn auth_routes() -> Router { 
    Router::new()
        .route("/auth/login", post(login_handler))
        .route("/auth/me", get(get_current_user))
}